#include "AnMainwin.h"
#include "AnGlobal.h"
#include "_SetFilepageCallback.h"

void * _set_filepage_cb;

void AnMainwin::setFilepage()
{
    _set_filepage_cb=(void *) new _SetFilepageCallback(this);

    QObject::connect(sys_callback, SIGNAL(connect_build()),
                     (_SetFilepageCallback *) _set_filepage_cb, SLOT(connect_build()));
    QObject::connect(sys_callback, SIGNAL(connect_close()),
                     (_SetFilepageCallback *) _set_filepage_cb, SLOT(connect_close()));
    QObject::connect(fp->pushButton_file_refresh, SIGNAL(clicked()),
                     (_SetFilepageCallback *) _set_filepage_cb, SLOT(refresh_clicked()));
    QObject::connect(fp->pushButton_import, SIGNAL(clicked()),
                     (_SetFilepageCallback *) _set_filepage_cb, SLOT(import_clicked()));
    QObject::connect(fp->pushButton_export, SIGNAL(clicked()),
                     (_SetFilepageCallback *) _set_filepage_cb, SLOT(export_clicked()));
}
